
dialog("现在游戏更新后是抢购模式会拿你包裹内的所有钱去尝试抢购所以使用前包裹不用带太多钱，想好准备花多少钱可以接受。钱可以去天墉城（钱大富）处存取  切记！！切记！！切记！！切记！！切记！！切记！！切记！！切记！！切记！！切记！！切记！！切记！！切记！！", 3)
aa1=math.random(1,10)
aa2=math.random(1,10)
x, y = findMultiColorInRegionFuzzy(0xe6c652,"10|16|0xf7e784,-6|27|0xe6aa4a", 95, 6, 375, 115, 484)
if x > -1 then
  tap(x,y)
  mSleep(500)
  
end
ax, ay = findMultiColorInRegionFuzzy(0xfff37b,"0|19|0xfffba4,25|8|0xeebe42", 95, 141, 367, 262, 482)
if ax > -1 then
  tap(ax, ay)
  mSleep(500)
end
cx, cy = findMultiColorInRegionFuzzy(0x6b5131,"-7|34|0xb5a284,4|65|0x735942", 95, 1684, 665, 1751, 803)
if cx > -1 then
  tap(cx, cy)
  mSleep(500)
end
dx, dy = findMultiColorInRegionFuzzy(0xa46919,"8|0|0xe6dbc5,-13|-9|0xe6dfce", 95, 264, 108, 486, 168)
if dx > -1 then
  tap(381,218)
  mSleep(500)
  tap(797,132)
  mSleep(500)	
  tap(816,474)
  mSleep(500)
end
while true do
  sx, sy = findMultiColorInRegionFuzzy(0xad2831,"24|-1|0x9c2d31,10|24|0xd6beb5", 95, 650, 213, 1121, 358)
  if sx > -1 then
    tap(sx, sy)
    mSleep(10)
    tap(1070,969)
    mSleep(10)
    tap(1540,969)
    
  end
  mSleep(10)
  ex, ey = findMultiColorInRegionFuzzy(0xa4dbce,"27|0|0xa4dbce,36|30|0xffffff", 95, 755, 702, 1162, 775)
  if ex > -1 then
    while true do
      ex, ey = findMultiColorInRegionFuzzy(0xa4dbce,"27|0|0xa4dbce,36|30|0xffffff", 95, 755, 702, 1162, 775)
      if ex > -1 then
        for i=1,1000 do
          tap(ex, ey)
        end
        mSleep(20)
      end
    end
  end
end